package creational.singleton.eagerman;

import creational.singleton.Singleton;

/**
 * 单例模式
 * 饿汉式1
 *
 * @author binbin
 * @since 2022/10/4 13:37
 */
public class EagerManSingleton1 implements Singleton {

    private static final EagerManSingleton1 INSTANCE = new EagerManSingleton1();

    private EagerManSingleton1() {
    }

    public static EagerManSingleton1 getInstance() {
        return INSTANCE;
    }
}
